package com.leo.apptest.activity;

import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.leo.apptest.R;

public class ImageActivity extends AppCompatActivity {

    private ImageView mIvPicasso;
    private ImageView mIvGlide;
    private Handler myHandler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_image);

        mIvPicasso = (ImageView) findViewById(R.id.ivPicasso);
        mIvGlide = (ImageView) findViewById(R.id.ivGlide);
        myHandler = new Handler(Looper.getMainLooper());
        Glide.with(ImageActivity.this).load("http://pic6.huitu.com/res/20130116/84481_20130116142820494200_1.jpg").crossFade().into(mIvGlide);
    }
}
